package org.springblade.mes.logistics.area.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 数据模型
 * @author qp
 */
@Data
@Accessors(chain = true)
@TableName("lgs_inventory_area")
public class InventoryArea extends TenantEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "库区编码")
	private String areaCode;

	@ApiModelProperty(value = "库区名称")
	private String areaName;

	@ApiModelProperty(value = "库区类型")
	private String areaType;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "是否有效")
	@JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	private Integer isEnable;

	@ApiModelProperty(value = "是否先进先出")
	@JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	private Integer isFifo;

	@ApiModelProperty(value = "createUserName")
	private String createUserName;

	@ApiModelProperty(value = "updateUserName")
	private String updateUserName;

	@ApiModelProperty(value = "三方库所在公司Id")
	@JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	private Long siteCompanyId;

	@ApiModelProperty(value = "物料类型,逗号分开")
	private String materialTypes;

	@ApiModelProperty(value = "其他系统编码")
	private String otherSysCode;

	@ApiModelProperty(value = "其他系统编码2")
	private String otherSysCode2;

}